﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CtrEventList.ascx.cs" Inherits="VluSDCEvent.CtrEventList" %>
<%@ Register Assembly="DotNetNuke" Namespace="DotNetNuke.UI.WebControls" TagPrefix="dnn"%>

<%--<link href="<%=ModulePath%>CtrEventList.css" rel="stylesheet" type="text/css" />
<link href="CtrEventList.css" rel="stylesheet" type="text/css" />
<link href="<%=ModulePath%>css/jquery.marquee.min.css" rel="stylesheet" type="text/css" />
<link href="css/jquery.marquee.min.css" rel="stylesheet" type="text/css" />
--%>
<link href="<%=ModulePath%>css/VNTMarquee.css" rel="stylesheet" type="text/css" />
<link href="css/VNTMarquee.css" rel="stylesheet" type="text/css" />

<script src="js/jquery-1.4.1.js" type="text/javascript"></script>
<script src="js/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
<%--<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>--%>

<%--<script src="js/jquery-1.2.6.js" type="text/javascript"></script>
<script src="js/jquery-1.2.6-vsdoc.js" type="text/javascript"></script>
--%>

<script type="text/javascript">
    function mtdTest1(pDiv) {
        jQuery("#" + pDiv + " .lblM").text(jQuery("#" + pDiv + " .VNTDiv1").height());
        //jQuery("#" + pDiv + " .lblM").scrollTop(10);
        jQuery("#" + pDiv + " .lblM").css("top", "50px");
        alert("lblM : " + jQuery("#" + pDiv + " .lblM").position().top);
        //alert("lblM : " + jQuery("#.lblM").position().left);
        //alert(jQuery("#" + pDiv).height());
        //alert(jQuery("#" + pDiv + " .lblM").text());
    }

    jQuery(document).ready(function() {
        jQuery("#<%= VNTDiv.ClientID %>").mouseover(function() {
            var bScroll = parseInt(jQuery("#" + jQuery("#<%= VNTDiv.ClientID %>").attr('id') + " .lblScroll").text());
            if (bScroll > 0) {
                jQuery("#" + jQuery("#<%= VNTDiv.ClientID %>").attr('id') + " .lblScroll").text('0');
            }
        });
        jQuery("#<%= VNTDiv.ClientID %>").mouseout(function() {
            var bScroll = parseInt(jQuery("#" + jQuery("#<%= VNTDiv.ClientID %>").attr('id') + " .lblScroll").text());
            if (bScroll == 0) {
                jQuery("#" + jQuery("#<%= VNTDiv.ClientID %>").attr('id') + " .lblScroll").text('1');
            }
        });
        fncMarqueeUp(jQuery("#<%= VNTDiv.ClientID %>").attr('id'), 100);

    });

</script>

    <asp:Panel runat="server" id="VNTDiv" CssClass="VNTDiv">
        <asp:Panel runat="server" id="VNTDiv1" CssClass="VNTDiv1">
            <asp:DataList runat="server" ID="dtlEvent" CssClass="VNTTable">
                <ItemTemplate>
                    <asp:Table ID="Table1" runat="server">
                        <asp:TableRow ID="TableRow1" runat="server">
                            <asp:TableCell ID="TableCell1" runat="server" VerticalAlign="Top">
                                <asp:Image runat="server" ID="imgBullet" ImageUrl="~/images/action_right.gif" />
                            </asp:TableCell>
                            <asp:TableCell ID="TableCell2" runat="server">
                                <asp:Label runat="server" ID="lblContent" Text='<%# System.Web.HttpUtility.HtmlDecode(Eval("Content").ToString()) %>'></asp:Label>
                            </asp:TableCell>
                        </asp:TableRow>
                    </asp:Table>
                </ItemTemplate>
            </asp:DataList>
        </asp:Panel>

        <asp:Panel runat="server" id="VNTDiv2" CssClass="VNTDiv2">
            <asp:DataList runat="server" ID="dtlEvent1" CssClass="VNTTable">
                <ItemTemplate>
                    <asp:Table ID="Table1" runat="server">
                        <asp:TableRow ID="TableRow1" runat="server">
                            <asp:TableCell ID="TableCell1" runat="server" VerticalAlign="Top">
                                <asp:Image runat="server" ID="imgBullet" ImageUrl="~/images/action_right.gif" />
                            </asp:TableCell>
                            <asp:TableCell ID="TableCell2" runat="server">
                                <asp:Label runat="server" ID="lblContent" Text='<%# System.Web.HttpUtility.HtmlDecode(Eval("Content").ToString()) %>'></asp:Label>
                            </asp:TableCell>
                        </asp:TableRow>
                    </asp:Table>
                </ItemTemplate>
            </asp:DataList>
        </asp:Panel>

        <asp:Label runat="server" ID="lblDistance" Text="0" CssClass="lblDistance"></asp:Label>
        <asp:Label runat="server" ID="lblScroll" Text="1" CssClass="lblScroll"></asp:Label>

    </asp:Panel>
